<div class="form-group">
    <label for="tag" class="col-md-3 control-label">用户名</label>
    <div class="col-md-5">
        <input type="text" class="form-control" name="name" id="tag" value="{{ $name }}" autofocus>
    </div>
</div>
<div class="form-group">
    <label for="tag" class="col-md-3 control-label">邮箱</label>
    <div class="col-md-5">
        <input type="text" class="form-control" name="email" id="tag" value="{{ $email }}" >
    </div>
</div>

<div class="form-group">
    <label for="tag" class="col-md-3 control-label">密码</label>
    <div class="col-md-5">
        <input type="password" class="form-control" name="password" id="tag" value="" >
    </div>
</div>

<div class="form-group">
    <label for="tag" class="col-md-3 control-label">密码确认</label>
    <div class="col-md-5">
        <input type="password" class="form-control" name="repassword" id="tag" value="" >
    </div>
</div>


<div class="form-group" @if((auth()->user()->id==$id&&$role_id ==6)||(auth()->user()->id==$id&&$role_id ==7)) style="display:none;" @endif>
    <label for="tag" class="col-md-3 control-label">角色列表</label>
    @if(isset($id)&&$id==1)
        <div class="col-md-4" style="float:left;padding-left:20px;margin-top:8px;"><h2>超级管理员</h2></div>
    @else
        <div class="col-md-6">
            @foreach($rolesAll as $v)
                <div class="col-md-4" style="float:left;padding-left:20px;margin-top:8px;" >
                    <input class="form-actions"
                           @if(in_array($v['id'],$roles))
                           checked
                           @endif
						   @if($v['id']==6)
                           onclick="$('.quanxian').slideToggle();"
                           @endif
                           id="inputChekbox{{$v['id']}}" type="Checkbox" value="{{$v['id']}}"
                           name="roles[]"> <label for="inputChekbox{{$v['id']}}">
                    {{$v['display_name']}}
                </label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           
                </div>
            @endforeach
        </div>
    @endif

</div>


<div class="form-group quanxian" @if(in_array(6,$roles)) style="display:block;"@else style="display:none;" @endif>
    <label for="tag" class="col-md-3 control-label">分类权限</label>
    <div class="col-md-5">
        <div class="checkbox icheck">
			@foreach($orderCate as $oc)
            <label>
              <input type="checkbox" name="orderCate[]" @if($oc['check']) checked @endif value="{{$oc['name']}}">&nbsp;{{$oc['name']}}
            </label>&nbsp;&nbsp;&nbsp;&nbsp;
			@endforeach
          </div>
    </div>
</div>

